# Opencv
#project(${TRACKING_NAME})

find_package(OpenCV REQUIRED)

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(/usr/include/eigen3)
include_directories(${SOLUTION_DIR})

link_directories(${SOLUTION_DIR}/libs)


aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src TRACKING_SRCS)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-Wall -pthread -O3")
message("-- Build tracking c++ dynamic library")
add_library(tracking SHARED ${TRACKING_SRCS})

target_link_libraries(${TRACKING_NAME} PUBLIC ${OpenCV_LIBS} nvinfer )
install(TARGETS ${TRACKING_NAME} LIBRARY DESTINATION ${SOLUTION_DIR}/libs/${PROJECT_NAME})

